package com.apps.globals.sys.service.impl;

import com.apps.globals.sys.model.po.KupaSysMessage;
import com.apps.globals.sys.dao.KupaSysMessageMapper;
import com.apps.globals.sys.service.IKupaSysMessageService;
import com.apps.sworld.dao.impl.sDaoImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 大鹏
 * @since 2020-11-07
 */
@Service
public class KupaSysMessageServiceImpl extends sDaoImpl<KupaSysMessageMapper, KupaSysMessage> implements IKupaSysMessageService {

    @Override
    public KupaSysMessage getOne() {
        QueryWrapper<KupaSysMessage> wrapper=new QueryWrapper<>();
        wrapper.eq("is_top",1);
        return getOne(wrapper);
    }
}
